package com.quad.innovators.salesease.model.vo.task;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * @author cheng
 */
@Schema(description = "任务发布对象")
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class TaskDistributionVO implements Serializable {

    @Schema(description = "任务code")
    private String code;

    @Schema(description = "任务名称")
    private String name;

    @Schema(description = "执行位置类型 1-仓库 2-门店")
    private Integer addressType;

    // @Schema(description = "执行位置Code")
    // private List<String> addressCode;

    @Schema(description = "执行位置")
    private List<String> address;

    @Schema(description = "所属标签")
    private List<String> tagCodeList;

    @Schema(description = "具体问题")
    private String specificTask;

    @Schema(description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate startTime;

    @Schema(description = "截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate deadline;

    @Schema(description = "任务状态 1-未完成 2-未开始 3-已完成")
    private Integer status;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "执行人名称")
    private String executorName;

}
